<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>OBSceneGroupVC Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">OBMessenger </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">On-Bright</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/actions">actions</option>
		
		<option value="//api/name/boxEntity">boxEntity</option>
		
		<option value="//api/name/conditions">conditions</option>
		
		<option value="//api/name/currentStage">currentStage</option>
		
		<option value="//api/name/firstSceneEntity">firstSceneEntity</option>
		
		<option value="//api/name/secondSceneEntity">secondSceneEntity</option>
		
		<option value="//api/name/unitSceneName">unitSceneName</option>
		
	</optgroup>
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/conditionsDescriptionWithSceneGroup:forIndex:">+ conditionsDescriptionWithSceneGroup:forIndex:</option>
		
		<option value="//api/name/getFirstEntitiesOfSceneGroups">+ getFirstEntitiesOfSceneGroups</option>
		
		<option value="//api/name/removeSceneGroup:">+ removeSceneGroup:</option>
		
		<option value="//api/name/sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:">+ sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:</option>
		
	</optgroup>
	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/parserConditions">- parserConditions</option>
		
		<option value="//api/name/startCreateUnitScene">- startCreateUnitScene</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">OBSceneGroupVC Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>UITableViewController</td>
</tr><tr>
	<th>Declared in</th>
	<td>OBSceneGroupVC.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/getFirstEntitiesOfSceneGroups" title="getFirstEntitiesOfSceneGroups"></a>
	<h3 class="method-title"><code><a href="#//api/name/getFirstEntitiesOfSceneGroups">+&nbsp;getFirstEntitiesOfSceneGroups</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>get first scene entities!
will auto remove err sub scene</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSSet *)getFirstEntitiesOfSceneGroups</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>first scene entities set that have sub scene, or nil.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeSceneGroup:" title="removeSceneGroup:"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeSceneGroup:">+&nbsp;removeSceneGroup:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>remove scene group, if have sub scene, will auto remove it.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)removeSceneGroup:(nonnull SceneEntity *)<em>firstSceneEntity</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>firstSceneEntity</code></th>
						<td><p>first scene entity</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/conditionsDescriptionWithSceneGroup:forIndex:" title="conditionsDescriptionWithSceneGroup:forIndex:"></a>
	<h3 class="method-title"><code><a href="#//api/name/conditionsDescriptionWithSceneGroup:forIndex:">+&nbsp;conditionsDescriptionWithSceneGroup:forIndex:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>opposite <a href="#//api/name/conditions">conditions</a> description only for time condition</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSDictionary *)conditionsDescriptionWithSceneGroup:(nonnull SceneEntity *)<em>firstSceneEntity</em> forIndex:(NSUInteger)<em>index</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>firstSceneEntity</code></th>
						<td><p>first scene entity</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>index</code></th>
						<td><p>sub condition index</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>condition description: @&ldquo;description&rdquo;:description, @&ldquo;parserDic&rdquo;:condition resolve array</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:" title="sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:">+&nbsp;sortingSceneGroupByTimeConditionWithFirstScenesSet:fromWeek:andHour:andMinute:byRegardTotalSecondPerWeek:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>For scenegroups that have timer <a href="#//api/name/conditions">conditions</a> preview sorting dic</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable NSDictionary *)sortingSceneGroupByTimeConditionWithFirstScenesSet:(nonnull NSSet *)<em>firstSceneSet</em> fromWeek:(ModelSceneConditionWeak)<em>week</em> andHour:(uint)<em>hour</em> andMinute:(uint)<em>min</em> byRegardTotalSecondPerWeek:(uint)<em>totalSecPerWeek</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>firstSceneSet</code></th>
						<td><p>first scene entities set that have sub scene(using <a href="#//api/name/getFirstEntitiesOfSceneGroups">getFirstEntitiesOfSceneGroups</a> to fliter)</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>week</code></th>
						<td><p>from which day <a href="../Constants/ModelSceneConditionWeak.html">ModelSceneConditionWeak</a>. Sun to Sat.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>hour</code></th>
						<td><p>from which day hour</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>min</code></th>
						<td><p>from which day minute</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>totalSecPerWeek</code></th>
						<td><p>tratement week total second as counts</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>sorting Dic [Key: count of week, Value: array included sceneEntities]</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/currentStage" title="currentStage"></a>
	<h3 class="method-title"><code><a href="#//api/name/currentStage">&nbsp;&nbsp;currentStage</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>current action stage.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) OBSceneGroupStage currentStage</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/boxEntity" title="boxEntity"></a>
	<h3 class="method-title"><code><a href="#//api/name/boxEntity">&nbsp;&nbsp;boxEntity</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>a weak boxEntity assigned for new or modify.
preferred Local Setting if can.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) OboxEntity *boxEntity</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/unitSceneName" title="unitSceneName"></a>
	<h3 class="method-title"><code><a href="#//api/name/unitSceneName">&nbsp;&nbsp;unitSceneName</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>assign a unit scene name, NO Null or nil, auto cut to less than 14 letters</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *unitSceneName</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/conditions" title="conditions"></a>
	<h3 class="method-title"><code><a href="#//api/name/conditions">&nbsp;&nbsp;conditions</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>MUST CONTAIN less than 3 and one at lease array that included 2 opposite condition dictionaries
use [SceneEntity makeConditionListBy&hellip;] to create opposite condition</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSArray&lt;NSArray&lt;NSDictionary*&gt; *&gt; *conditions</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/actions" title="actions"></a>
	<h3 class="method-title"><code><a href="#//api/name/actions">&nbsp;&nbsp;actions</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>MUST CONTAIN one array at lease that asign a device or group two opposite actionLists.
use [SceneEntity makeActionList..] to create actionList</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSArray&lt;NSArray&lt;NSDictionary*&gt; *&gt; *actions</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/startCreateUnitScene" title="startCreateUnitScene"></a>
	<h3 class="method-title"><code><a href="#//api/name/startCreateUnitScene">&ndash;&nbsp;startCreateUnitScene</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>After set the all property above, call to create or modify automatically</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)startCreateUnitScene</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/parserConditions" title="parserConditions"></a>
	<h3 class="method-title"><code><a href="#//api/name/parserConditions">&ndash;&nbsp;parserConditions</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>parser condition of scene group.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray&lt;NSArray&lt;NSDictionary*&gt; *&gt; *)parserConditions</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p><a href="#//api/name/conditions">conditions</a> array contained two scene Entity pair conditonList, nil for nothing or error.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/firstSceneEntity" title="firstSceneEntity"></a>
	<h3 class="method-title"><code><a href="#//api/name/firstSceneEntity">&nbsp;&nbsp;firstSceneEntity</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>assign for a main sceneEntity if show or modify unitScene, or read that create result.
If create success, this will no nil and assign to entity that create before.
If assign, it may set to nil if no a local scene or can not find <a href="#//api/name/boxEntity">boxEntity</a>,
otherwise, it will automatical assign <a href="#//api/name/boxEntity">boxEntity</a> and assign <a href="#//api/name/secondSceneEntity">secondSceneEntity</a> if have.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) SceneEntity *firstSceneEntity</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/secondSceneEntity" title="secondSceneEntity"></a>
	<h3 class="method-title"><code><a href="#//api/name/secondSceneEntity">&nbsp;&nbsp;secondSceneEntity</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>If create success, this will no nil and assign to entity that create before.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, weak, readonly) SceneEntity *secondSceneEntity</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">OBSceneGroupVC.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 On-Bright. All rights reserved. Updated: 2017-06-09</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>